package edu.gdkm.extendsdemo;

public class Person{
    private String  id;    //声明id属性
    private String  name; //声明姓名属性
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }
    public Person() {
    }
    public  void  say(){  //定义say（）方法,输出信息
        System.out.println("Id："+ id +"，姓名："+name);
    }
    public void introduction(){
        System.out.println("----------------------------");
        System.out.println("大家好！我是一名人类！");
        this.say();
        System.out.println("----------------------------");
    }
}
